package com.example.blog.service;

import com.example.blog.pojo.Blog;
import com.example.blog.pojo.query.SearchBlog;
import com.github.pagehelper.ISelect;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

public interface BlogService {
   PageInfo getPage(Integer page, Integer num);
   PageInfo queryPage(Integer page, Integer num, SearchBlog searchBlog);
   Map<String,Object> getInformation();
   Blog getBlog(Integer id);
   Boolean delete(Integer id);
   void saveBlog(Blog blog);
   List<Blog> getBlogOrderBy();
   List getAllBlog();
}
